package com.jason.cloud.engine.share.driver.order.service;

import com.jason.cloud.engine.share.driver.order.bean.OrderBean;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface OrderService {

    /**
     * 根据ID变更订单
     * @param id
     * @return
     */
    OrderBean queryOrderById(String id);

    /**
     * 创建变更资费订单
     * @param orderBean
     */
    void insertOrder(OrderBean orderBean);

    /**
     * 列举出所有的订单
     * @return
     */
    List<OrderBean> getOrderByLimit(int page, int size);

    /**
     * 计数订单
     * @return
     */
    int getOrderCount();

    /**
     * 更新订单
     * @param orderBean
     */
    void updateOrderStatusByOrderId(OrderBean orderBean);
}
